<script>
export default {
  name: "sonCom1",
  data() {
    return {
      son: "sonson1"
    }
  },
  methods: {
    toFather() {
      this.$emit('getSon', this.son)
    }
  },
  created() {
    this.$emit('getSon', this.son)
  }
}
</script>

<template>
  <div>
    son1son1son1son1
    <button @click="toFather">toFather</button>
  </div>
</template>

<style scoped lang="less">

</style>